<?php
$tittleText = '图片编辑';
require("{$CfgPara->root}/view/tittle_back_bar.app.v.php");
?>
<div id="img_big_demo" style="overflow: hidden;">
    <img id="img_need_cut" style="position:relative; top:0; left:0; width:100%" src="<?= $InputData['img_url'] ?>"/>
</div>
<div style="border-top:1px solid black"></div>
<div style="margin:5px 10px">
    <div class="am-alert am-alert-secondary" data-am-alert>
        <button type="button" class="am-close">&times;</button>
        <p>通过移动或缩放，确认框线内图片内容</p>
    </div>
    <button type="button" class="am-btn am-btn-primary am-fr" onclick="imgCut.GetNewUrl();">确定</button>
</div>
<span id="test111"></span>
<div style="display:none">
    <canvas id="img_canvas" width="1024" height="768"></canvas>
    <input type="text" id="parent_id" value="<?= $InputData['parent_id'] ?>"/>
    <input type="text" id="parent_type" value="<?= $InputData['parent_type'] ?>"/>
    <input type="text" id="img_name" value="<?= $InputData['img_name'] ?>"/>
</div>

<script type="text/javascript">
    img_show_upload_ini();
    if (imgCut == null) {
        imgCut = new CImgCut();
    }
    imgCut.Init();
</script>